<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>收费汇总表</title>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/tabs.jsp"%>
<%@ include file="/commons/validation.jsp"%>
<%@ include file="/commons/dateTime.jsp"%>
<script type="text/javascript" src="${ctx }/scripts/tags/unitedselect/UnitedSelect.js"> </script>
<script type="text/javascript" src="${ctx }/scripts/public3.js"></script>

<style type="text/css" >
.onclickbg {
	background-color: #FEEC8C;
}

.offclickbg {
	background-color: #ffffff;
}

body {
	margin-top: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
<script type="text/javascript">
	function showReport(){
       	var isPass=$('report').fireEvent("onSubmit");
		if(isPass){
			$('report').submit();
		}
	}
</script>
</head>
<body scroll="no">
<form id="report" target="_blank" name="report" action="${ctx}/applets/appletShow.jsp?reportName=grantBuildAndItemReport" class="required-validate">
<input type="hidden" id="reportName" name="reportName" value="chargeCollectReport">
<div class="container"  >
<table width="100%" border="0" cellpadding="0" cellspacing="0"  >
  <tr><td class="bg_search"></td></tr>
  <tr>
    <td valign="top">
      <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1"  class="aux_intable_color" id="lp" >
        <tr>
          <td class="aux_intable_td41" >${key.precinct }：</td>
          <td class="aux_intable_td42"colspan="3">
		  	<pms:unitedSelect
	     		id="precinct"
	     		name="precinct"
	     		optionLabel="name"
	     		optionValue="keyword"
	     		selectText="${key.pleaseSelect}"
	     		dataList="${precinct}"
	     		actionName="reportAction"
	     		targetId="buildingId"
	     		isUnited="true"
	     		className="select-one-required"
	     		>
	     	</pms:unitedSelect>
		  </td>

        </tr>
		<tr>
          <td class="aux_intable_td41">${key.building }：
		  </td>
          <td class="aux_intable_td42" colspan="3">
		  <pms:unitedSelect
	     		id="buildingId"
	     		name="buildingId"
	     		selectText="${key.all }"
	     		dataList="${building}"
	     		style="width:90px;">
	     	</pms:unitedSelect></td>

        </tr>
        <tr>
          <td class="aux_intable_td41">${key.subentry }：</td>
          <td class="aux_intable_td42" colspan="3" >
		  <select id="subentry" name="subentry" class="select-one-required">
					<option>${key.pleaseSelect }</option>
					<option value="3">${key.thisAndBeforeCharge }</option>
					<option value="1">${key.thisCharge }</option>
					<option value="2">${key.BeforeCharge }</option>
				</select></td>

        </tr>
        <tr>
          <td class="aux_intable_td41">${key.computeMonth }：</td>
          <td class="aux_intable_td42" colspan="3">
		  <table border="0" cellspacing="0" cellpadding="0">
              	<tr>

                <td><input name="computeMonth" id="computeMonth" type="text" class="inputtext required validate-date-yyyy-mm" value="" size="16" afterInsert="monthDateSpan" /></td>
                <td width="4">&nbsp;</td>
                <td width="45"><img src="${ctx}/images/ico_clock_month.gif" width="20" id="monthDateImg" height="20" border="0" /><span id="monthDateSpan"></span></td>

              </tr>
            </table>
		  <!------此件组件可单独选择到月份----------->
		  </td>
        </tr>
      </table>

	  <tr>
    <td class="window_footer"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><table border="0" cellpadding="0" cellspacing="0" style="display:none" >
            <tr>
              <td class="buttonOffLeft" id="btn1_21"></td>
              <td class="buttonOffMiddle" id="btn1_22" onblur="btn_change(2)" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onClick="closewin();"><img src="../../images/ico_ok.gif" border="0" align="absmiddle" />保存</td>
              <td class="buttonOffRight" id="btn1_23"></td>
            </tr>
        </table></td>
        <td class="btn_between_space"></td>
        <td><table border="0" cellpadding="0" cellspacing="0" onClick="closewin();">
            <tr>
              <td class="buttonOffLeft" id="btn1_31"></td>
              <td onclick="showReport()"  class="buttonOffMiddle" id="btn1_32" onblur="btn_change(3)" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)"><img src="${ctx}/images/ico_lookup.gif" border="0" align="absmiddle" /> ${key.preview }</td>
              <td class="buttonOffRight" id="btn1_33"></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>

</table>
</div>
</form>
 <script type="text/javascript">
             Calendar.setup(
              {
	              inputField : "computeMonth", // ID of the input field
	              ifFormat : "%Y-%m", // the date format
	              button : "monthDateImg", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );

</script>
</body>
</html>